<!--
*Author：DGZ
 *Contact：jiduxiong@dagongzao.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/bizappproject/full_line_inventory/Full_Line_Inventory_Area.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/bizappproject/full_line_inventory/Full_Line_Inventory_Area.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        name: "Full_Line_Inventory_Area",
        setup() {
            const table = ref({
                key: "Id",
                footer: "Foots",
                cnName: "三地成品盘点分厂",
                name: "full_line_inventory/Full_Line_Inventory_Area",
                newTabEdit: false,
                url: "/Full_Line_Inventory_Area/",
                sortName: "Id"
            });
            const editFormFields = ref({"Location":"","ProductGeneral":"","Size":"","Plating":"","BlankInLine":"","BlankInInventory":"","MachiningInLine":"","BlackInInventory":"","PlatingInLine":"","WhiteInInventory":"","PackingInLine":"","FinalNonMagnetic":"","FinalInInventory":"","NormalFinalExpected":"","ReworkInventory":"","BlackDieReuseInventory":"","ReturnedInventory":"","DefectiveMaterialPassRate":"","AbnormalFinalExpected":"","FinalExpected":"","Remarks":""});
            const editFormOptions = ref([[{"title":"厂区","field":"Location"},
                               {"title":"产品名称","field":"ProductGeneral"}],
                              [{"title":"成品尺寸","field":"Size"},
                               {"title":"镀层","field":"Plating"}],
                              [{"title":"毛坯生产在线","field":"BlankInLine","type":"number"},
                               {"title":"毛坯在库","field":"BlankInInventory","type":"number"}],
                              [{"title":"加工在线","field":"MachiningInLine","type":"number"},
                               {"title":"黑片在库","field":"BlackInInventory","type":"number"}],
                              [{"title":"电镀在线","field":"PlatingInLine","type":"number"},
                               {"title":"白片在库","field":"WhiteInInventory","type":"number"}],
                              [{"title":"检包在线","field":"PackingInLine","type":"number"},
                               {"title":"成品无磁库存","field":"FinalNonMagnetic","type":"number"}],
                              [{"title":"成品在库","field":"FinalInInventory","type":"number"},
                               {"title":"预计正常成品数","field":"NormalFinalExpected","type":"number"}],
                              [{"title":"返修库","field":"ReworkInventory","type":"number"},
                               {"title":"黑片待改用库","field":"BlackDieReuseInventory","type":"number"}],
                              [{"title":"退货库","field":"ReturnedInventory","type":"number"},
                               {"title":"异常物料合格率","field":"DefectiveMaterialPassRate","type":"decimal"}],
                              [{"title":"预计异常成品数","field":"AbnormalFinalExpected","type":"number"},
                               {"title":"预计全线成品数","field":"FinalExpected"}],
                              [{"title":"备注","field":"Remarks","colSize":12,"type":"textarea"}]]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:"Id",title:"键",type:"bigint",width:110,hidden:true,readonly:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Location",title:"厂区",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"ProductGeneral",title:"产品名称",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"Size",title:"成品尺寸",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"Plating",title:"镀层",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"BlankInLine",title:"毛坯生产在线",type:"int",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"BlankInInventory",title:"毛坯在库",type:"int",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"MachiningInLine",title:"加工在线",type:"int",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"BlackInInventory",title:"黑片在库",type:"int",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"PlatingInLine",title:"电镀在线",type:"int",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"WhiteInInventory",title:"白片在库",type:"int",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"PackingInLine",title:"检包在线",type:"int",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"FinalNonMagnetic",title:"成品无磁库存",type:"int",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"FinalInInventory",title:"成品在库",type:"int",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"NormalFinalExpected",title:"预计正常成品数",type:"int",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"ReworkInventory",title:"返修库",type:"int",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"BlackDieReuseInventory",title:"黑片待改用库",type:"int",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"ReturnedInventory",title:"退货库",type:"int",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"DefectiveMaterialPassRate",title:"异常物料合格率",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"AbnormalFinalExpected",title:"预计异常成品数",type:"int",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"FinalExpected",title:"预计全线成品数",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"IsValid",title:"是否有效(0:否,1:是)",type:"int",width:110,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Remarks",title:"备注",type:"string",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"CreateId",title:"创建人ID",type:"bigint",width:80,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Creator",title:"创建人名",type:"string",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"CreateTime",title:"创建时间",type:"datetime",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyId",title:"修改人ID",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Modifier",title:"修改人名",type:"string",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyTime",title:"修改时间",type:"datetime",width:110,showOverflowTooltip:true,align:"left"}]);
            const detail = ref({columns:[]});
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
